//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.aidong.web.controller.rpt;

import com.aidong.web.controller.rpt.RptFileDownloadController;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping({"cashierReport"})
public class CashierReportController extends RptFileDownloadController {
    public CashierReportController() {
    }

    @RequestMapping({"list"})
    public ModelAndView list() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        String dateFrom = sdf.format(new Date());
        String dateTo = sdf.format(new Date());
        ModelAndView mv = new ModelAndView("rpt/filedownload/list");
        mv.addObject("reportFileTypeName", this.getTypeList("reportFileTypeName"));
        mv.addObject("shopName", this.getTypeList("shopName"));
        mv.addObject("dateFrom", dateFrom);
        mv.addObject("dateTo", dateTo);
        mv.addObject("reportFileType", "02");
        return mv;
    }
}
